#ifndef TERMINAL
#define TERMINAL

#include "SerialPort.h"
#include "ui_MainWindow.h"

class Terminal : public QMainWindow
{
    Q_OBJECT

    public:
        Terminal(SerialPort *sp, QWidget *parent=0);

    signals:
        void dataReceived(QString datastring);

    private:
        SerialPort *sp;
        bool portOpen;

    private slots:


    public slots:
        void portOn();
        void portOff();
        void dataListener();
        void send(QString text);
};

#endif
